<extend name="Public/base"/>

<block name="body">
	<div class="main-title">
		<h2>{$_title}</h2>
	</div>
		<div class="tab-wrap">
		<ul class="tab-nav nav" id="info_nav">
			<li data-nav="1"><a href="javascript:void(0)">基本信息</a></li>
			<li data-nav="2"><a href="javascript:void(0)">详细信息</a></li>
			<li data-nav="3"><a href="javascript:void(0)">绑定银行卡</a></li>
		</ul>
		<div class="tab-content" id="info_container"></div>
		<div class="controls" style="margin-top:10px;">
			<button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button>
		</div>
	</div>
</block>

<block name="script">
<script type="text/javascript">
	$("#info_nav").children('li').click(function(){
		$(this).siblings('li').removeClass('current');
		$(this).addClass('current');
		//alert($(this).attr('data-nav'));return;
		$id = "{$id}";
		ajaxRequest("{:U('AppUser/userInfo')}", {"type":$(this).attr('data-nav'),"id":$id}, {"func":function(data){
			$container = $("#info_container");
			if(data) {
				$container.empty().append(data.info);
			} else {
				$container.empty().append('查询失败');
			}
		}});
	});
	
	$("#info_nav").children('li').eq(0).click();
	
	highlight_subnav('{:U('AppUser/userList')}');
</script>
</block>
